package com.hsylient.resource.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Getter
@Configuration
@PropertySource(
        value = "classpath:custom-config.properties", // 读取的配置
        encoding = "UTF-8" // 使用的字符集
)
public class ConfigFromAnnotation {

    @Value("${hsylient.description}")
    private String description;

}